﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace UTS_Subject_Enrolment_System.Model
{
    public enum RequestStatus
    {
        Pending,
        Approved,
        Rejected
    }

    public class Request
    {
        public int ID { get; set; }
        public int StudentID { get; private set; }
        public string Summary { get; private set; }
        public RequestStatus Status { get; set; }

        public Request(int studentID, string summary, RequestStatus status = RequestStatus.Pending)
        {
            StudentID = studentID;
            Summary = summary;
            Status = status;
        }

        public bool IsProcessed()
        {
            return Status == RequestStatus.Pending;
        }
    }
}
